package com.woniuxy.personal.client;

import com.woniuxy.common.CommonResult;
import com.woniuxy.personal.client.dto.CarGoods;
import com.woniuxy.personal.client.dto.CarMycar;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Auther: fulang  <br/>
 * Date: 2021/6/30:17:31  <br/>
 * Description:
 */
@FeignClient(name = "homepage-service")
public interface HomepageFeignClient {
    @GetMapping("/carMycar/selectMyCar/{userId}")
    public CommonResult<List<CarMycar>> selecMyCar(@PathVariable("userId") Integer userId);

    @GetMapping("/carGoods/selectById/{id}")
    public CommonResult<CarGoods> selectByID(@PathVariable("id") Integer id);
}
